<?php
class AdminUsersDeleteController extends ApplicationController implements IExecutable
{
    public function exec()
    {
        $um = new UsersModel(DbConnection::COMMON_SPACE, true);
        $um->delete(Env::getParam('id'));
        
        Location::go('/admin/users/');
    }
}